using System;
using System.ComponentModel.DataAnnotations;

namespace MiniStock.BusinessLogic.EventQueue.Data
{
    [Table("Events")]
    public class EventQueueEventData
    {
        [Key]
        public Guid Id { get; set; }
        public Guid EventId { get; set; }
        public DateTime EventDate { get; set; }
        [ForeignKey("Affinity")]
        public string EntityHash { get; set; }
        public string ContentXml { get; set; }
        public string State { get; set; }
        public DateTime? SubmittedDate { get; set; }
        public string SubmittedTo { get; set; }

        public virtual EventQueueHashAffinity Affinity { get; set; }

    }
}